package util

import (
	"entity"
	"fmt"
	"sync"
)

/**
  初始化共享内存
*/
func init() {
	fmt.Println("util---->")
}

//实时数据
type RealTimeData struct {
	ABmsInfoPtr *entity.ABmsInfo
	CBmsInfoPtr *entity.CBmsInfo
}

/**
  C-BMS的内存结构
*/
type CBmsData struct {
	mutex sync.Mutex
	CBms  entity.CBmsInfo
}

func Test() {
	fmt.Println("test")
}

/**
  A-BMS的内存结构
*/
type ABmsData struct {
	mutex sync.Mutex
	ABms  entity.ABmsInfo
}
